package com.hxzy.controller.admin.mapstruct;

import cn.hutool.db.sql.Order;
import com.hxzy.controller.admin.orders.resp.OrderDetailResp;
import com.hxzy.controller.admin.orders.resp.OrderViewResp;
import com.hxzy.entity.OrderDetail;
import com.hxzy.entity.Orders;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/7/27 14:32
 * @Version 1.0
 */
@Mapper
public interface OrdersConvert {
    OrdersConvert INSTANCE= Mappers.getMapper(OrdersConvert.class);

    OrderViewResp  convert(Orders db);

    List<OrderDetailResp> convert(List<OrderDetail> list);
}
